package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EvalCharacterMapper;
import com.ruoyi.system.domain.EvalCharacter;
import com.ruoyi.system.service.IEvalCharacterService;

/**
 * 员工考评Service业务层处理
 * 
 * @author kk
 * @date 2023-06-21
 */
@Service
public class EvalCharacterServiceImpl implements IEvalCharacterService 
{
    @Autowired
    private EvalCharacterMapper evalCharacterMapper;

    /**
     * 查询员工考评
     * 
     * @param id 员工考评主键
     * @return 员工考评
     */
    @Override
    public EvalCharacter selectEvalCharacterById(Long id)
    {
        return evalCharacterMapper.selectEvalCharacterById(id);
    }

    /**
     * 查询员工考评列表
     * 
     * @param evalCharacter 员工考评
     * @return 员工考评
     */
    @Override
    public List<EvalCharacter> selectEvalCharacterList(EvalCharacter evalCharacter)
    {
        return evalCharacterMapper.selectEvalCharacterList(evalCharacter);
    }

    /**
     * 新增员工考评
     * 
     * @param evalCharacter 员工考评
     * @return 结果
     */
    @Override
    public int insertEvalCharacter(EvalCharacter evalCharacter)
    {
        return evalCharacterMapper.insertEvalCharacter(evalCharacter);
    }

    /**
     * 修改员工考评
     * 
     * @param evalCharacter 员工考评
     * @return 结果
     */
    @Override
    public int updateEvalCharacter(EvalCharacter evalCharacter)
    {
        return evalCharacterMapper.updateEvalCharacter(evalCharacter);
    }

    /**
     * 批量删除员工考评
     * 
     * @param ids 需要删除的员工考评主键
     * @return 结果
     */
    @Override
    public int deleteEvalCharacterByIds(Long[] ids)
    {
        return evalCharacterMapper.deleteEvalCharacterByIds(ids);
    }

    /**
     * 删除员工考评信息
     * 
     * @param id 员工考评主键
     * @return 结果
     */
    @Override
    public int deleteEvalCharacterById(Long id)
    {
        return evalCharacterMapper.deleteEvalCharacterById(id);
    }
}
